package com.cloud.pole.merchant.model.entity;

import java.util.Date;
import javax.persistence.*;

import com.cloud.pole.merchant.constant.MerchantCommonConstant;

import lombok.Data;

@Data
@Table(name = "shop_admin_menu")
public class Menu {
	/**
	 * 状态(0:无效 1:有效)
	 */
	public static final int ENABLED_YES = 1;
	public static final int ENABLED_NO  = 0;
	
    @Id
    private Integer menuId;

    private String code;

    private String title;

    @Column(name = "parent_id")
    private Integer parentId = MerchantCommonConstant.ROOT;

    private String href;

    private String icon;

    private String type;

    private String description;
    
    private Integer enabled;

    @Column(name = "crt_time")
    private Date crtTime;

    @Column(name = "crt_user")
    private String crtUser;

    @Column(name = "crt_name")
    private String crtName;

    @Column(name = "crt_host")
    private String crtHost;

    @Column(name = "upd_time")
    private Date updTime;

    @Column(name = "upd_user")
    private String updUser;

    @Column(name = "upd_name")
    private String updName;

    @Column(name = "upd_host")
    private String updHost;

    @Column(name = "attr1")
    private String attr1;

    private String attr2;

    private String attr3;

    private String attr4;

    private String attr5;

    private String attr6;

    private String attr7;

    private String attr8;

    private String path;
}